package sudroid.oauth;

import sudroid.net2.HttpException;
import sudroid.net2.Response;

public class RequestToken extends OAuthToken
{
  private static final long serialVersionUID = -8214365845469757952L;
  private BasicOAuthClient httpClient;

  RequestToken(String paramString1, String paramString2)
  {
    super(paramString1, paramString2);
  }

  RequestToken(Response paramResponse, BasicOAuthClient paramBasicOAuthClient)
    throws HttpException
  {
    super(paramResponse);
    this.httpClient = paramBasicOAuthClient;
  }

  public boolean equals(Object paramObject)
  {
    int i;
    if (this == paramObject)
      i = 1;
    while (true)
    {
      return i;
      if (paramObject != null)
      {
        Class localClass1 = getClass();
        Class localClass2 = paramObject.getClass();
        if (localClass1 == localClass2);
      }
      else
      {
        i = 0;
        continue;
      }
      if (!super.equals(paramObject))
      {
        i = 0;
        continue;
      }
      RequestToken localRequestToken = (RequestToken)paramObject;
      if (this.httpClient != null)
      {
        BasicOAuthClient localBasicOAuthClient1 = this.httpClient;
        BasicOAuthClient localBasicOAuthClient2 = localRequestToken.httpClient;
        if (localBasicOAuthClient1.equals(localBasicOAuthClient2));
      }
      else
      {
        do
        {
          i = 0;
          break;
        }
        while (localRequestToken.httpClient != null);
      }
      i = 1;
    }
  }

  public AccessToken getAccessToken(String paramString)
    throws HttpException
  {
    return this.httpClient.getOAuthAccessToken(this, paramString);
  }

  public String getAuthenticationURL()
  {
    String str1 = String.valueOf(this.httpClient.getAuthenticationURL());
    StringBuilder localStringBuilder = new StringBuilder(str1).append("?oauth_token=");
    String str2 = getToken();
    return str2;
  }

  public String getAuthorizationURL()
  {
    String str1 = String.valueOf(this.httpClient.getAuthorizationURL());
    StringBuilder localStringBuilder = new StringBuilder(str1).append("?oauth_token=");
    String str2 = getToken();
    return str2;
  }

  public int hashCode()
  {
    int i = super.hashCode() * 31;
    if (this.httpClient != null);
    for (int j = this.httpClient.hashCode(); ; j = 0)
      return i + j;
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.oauth.RequestToken
 * JD-Core Version:    0.6.0
 */